package com.cdlj.moes.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.cdlj.moes.R;
public class LocationSearchActivity extends Activity implements OnClickListener {
	private Button mNearbyBtn;
	private Button mSettingBtn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.moes_location);
		initScreen();
	}

	private void initScreen() {
		mSettingBtn = (Button) findViewById(R.id.butnSetting);
		mNearbyBtn = (Button) findViewById(R.id.butnNearby);
		mSettingBtn.setOnClickListener(this);
		mNearbyBtn.setOnClickListener(this);
	}

	public void onClick(View view) {
		switch (view.getId()) {
		case R.id.butnNearby:
			Intent mNearbytent = new Intent(LocationSearchActivity.this,
					GooleMapNearByActivity.class);
			startActivity(mNearbytent);
			overridePendingTransition(R.anim.main_enter, R.anim.main_exit);
			break;
		case R.id.butnSetting:
			Intent mSetIntent = new Intent(LocationSearchActivity.this,
					SettingActivity.class);
			startActivity(mSetIntent);
			break;
		default:
			break;
		}
	}
}
